<?php

function DrawPathItem($menu_item,$undepth)
{
	global $id;
	$com = $_SERVER['PHP_SELF'] . '?' ;
   	$com .= 'id='.$menu_item['id'] ;

	if($id!=$menu_item['id'] )echo "<a href=\"$com\">";
	echo $menu_item['title'];
	if($id!=$menu_item['id'] )echo "</a>";
	echo ' / ';
}

function DrawMenuItem($menu_item,$depth,$cur,$sel)
{
	$size='';

	if($depth)
	{
		if(!$sel)$size .= "onMouseover='high(this,50,100)' onMouseout='low(this,50,100)' ";
		if($sel) $size.="width='100' height='100'"; else $size.="width='50' height='50'";
	
	}
	else
	{
		if(!$sel)$size .= "onMouseover='high(this,70,140)' onMouseout='low(this,70,140)' ";
		if($sel) $size.="width='140' height='140'"; else $size.="width='70' height='70'";
	}
	if(!$cur)echo "<a href=\"".$_SERVER['PHP_SELF']."?id=".$menu_item['id']."\">";
	echo "<img src='pic/icons/".$menu_item['icon']."' alt='".$menu_item['title']."' {$size} ><br>";
	if(!$cur)
	{
		echo "<div class='menu' align='center'>";
		echo $menu_item['title'];
		echo '</div>';
		echo '</a>';
	}else echo '<br>';
}

?>